package com.example.common.exception;

import com.example.common.enums.ResponseCode;

/**
 * @Author Peng Yisheng
 * @Date 2024/12/7 8:36
 * @Description
 */
public class LimitedException extends BaseException {

    private static final long serialVersionUID = -5534700534739261461L;

    public LimitedException(ResponseCode code) {
        super(code.getMessage(), code);
    }

    public LimitedException(Throwable cause, ResponseCode code) {
        super(code.getMessage(), cause, code);
    }

}